package com.molichuxing.services.business.dto.response;

import com.molichuxing.services.property.GoodsPaymentTypeEnum;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @create_date: 2019/4/3
 * 商品抽屉实体
 * @name:goods-service
 * @author xuelin yi
 **/
@Data
public class GoodsBigScreenDrawerSpecBizDto extends GoodsSpecBizDto {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Integer goodsId;

    /**
     * 保证金
     */
    private BigDecimal bond;

    /**
     * 租车费
     */
    private BigDecimal rental;

    /**
     * 里程限制
     */
    private Integer limitMileage;


    /**
     * 付款方式(1:全款，2：分期)
     */
    private Integer paymentType;

    /**
     * 付款方式
     */
    private String paymentTypeStr;

    /**
     * 月供
     */
    private BigDecimal monthlySupply;

    /**
     * 总计
     */
    private BigDecimal totalAmount;

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
        this.paymentTypeStr = GoodsPaymentTypeEnum.getName(paymentType);
    }
}
